<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix = "fmt" %>
<%@page isELIgnored="false"%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<table>
	<tr>
	<td>NAME</td>
	<td>AGE</td>
	<td>SAL</td>
	<td>SEX</td>
	<td>BIRTH</td>
	</tr>
	<c:forEach items="${customerlist }" var="c">
	<tr>
		<td>${c.name }</td>
		<td>${c.age }</td>
		<td>${c.sal }</td>
		<td>
	 		<c:if test="${c.sex }">男</c:if>
	 		<c:if test="${!c.sex }">女</c:if>
	 	</td>
		<td><fmt:formatDate pattern="yyyy-MM-dd" value="${c.birth }"></fmt:formatDate></td>
	</tr>
	</c:forEach>
</table>
</body>
</html>